package org.zsl.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.zsl.mapper.ProductMapper;
import org.zsl.model.Product;

import java.util.List;

@RestController
@RequestMapping("/pro")
public class ProductController {


    @Autowired
     private ProductMapper productMapper;


    @RequestMapping("/list")
    public List<Product> getList(){
        return  productMapper.selectAll();
    }


}
